package com.core.family.admin.service;

import com.core.family.admin.domain.dto.UserGp;
import com.core.family.admin.domain.po.SysUserGroup;
import com.core.common.gen.IBaseService;

import java.io.Serializable;
import java.util.List;

/**
 * @author honglei
 * @version 1.0
 * @time: 2022-6-10 11:46:34
 * @Description 服务实现层接口
 */
public interface SysUserGroupService extends IBaseService<SysUserGroup> {


    List<SysUserGroup> getByUserId(Integer orgId, Serializable id);

    /**
     * 添加用户到 用户组
     * 如果用户组不存在，创建用户组
     *
     * @param group
     * @return 用户组id
     */
    int saveUserGp(UserGp group);
}

